<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        {{flag ? "11" : "22"}}
        <input type="button" value="点我" v-on:click="click">

        <p>v-text:
            <span v-text="msg"></span>
        </p>
        <p>v-html:
            <span v-html="msg"></span>
        </p>
    </div>
</body>
</html>
<script src="node_modules/vue/dist/vue.js"></script>
<script>
    const app = new Vue({
        el:"#app",
        data:{
            msg:"<h1>我们是80期</h1>",
            flag:true
        },
        methods:{
            click(){
                this.flag = !this.flag
            }
        }
    })
</script>